package com.chukun.multi.masterslave.reusable;

/**
 * 表示子任务处理失败的异常
 */
public class SubTaskFailureException extends Exception {

    /**
     * 对处理失败的子任务 进行重试所需的信息
     */
    private final RetryInfo retryInfo;

    public SubTaskFailureException(RetryInfo retryInfo,Exception cause) {
        super(cause);
        this.retryInfo  = retryInfo;
    }

    public RetryInfo getRetryInfo() {
        return retryInfo;
    }
}
